﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/PageMaster.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Desconto em Grupo - Esqueceu-se da Password?
</asp:Content>


<asp:Content ID="Content3" ContentPlaceHolderID="barralateral" runat="server">
	<!--Comerciais-->
		<% Html.RenderPartial("LateralComerciais"); %>
	<!--Comerciais-->
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<script type="text/javascript">
	$(document).ready(function () {
		$('form').submit(function () {
			if (isValidEmailAddress($("#Email").val()))
				return true;
			else {
				$.notifyBar({ html: "Email inválido!",
					cls: "error"
				});
				return false;
			} 
		});

	});


	function isValidEmailAddress(emailAddress) {
		var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i);
		return pattern.test(emailAddress);
	}
</script>
<style type="text/css">
label {
color:#3A3B3D;
float:left;
margin-right:10px;
}
</style>

<h5 class="titulo">Esqueci-me da Password?</h5>
<p><h5>Basta inserir o e-mail que usaste para o registo. Passados alguns momentos vais receber no teu email uma nova password.</h5></p>
<div>
	<% using (Html.BeginForm())
	   { %>
		<div>
		<%:Html.Label("Endereço de email:") %><%: Html.TextBox("Email", null, new { size = "40px",style="float:left;" })%>
		<input type="submit" value="Enviar" class="btn blue" style="float: left; width: 140px; margin-top: -3px; margin-bottom: 10px; margin-left: 15px;" />
		</div>
				<div class="clear">
	</div>
		
<%} %>
</div>
<p><h5>Depois de efectuares o login altera novamente a password.</h5></p>

</asp:Content>


<asp:Content ID="Content4" ContentPlaceHolderID="PainelBaixo" runat="server">
</asp:Content>
